package com.tcm.logistics.dao.mapper;

import com.tcm.logistics.entity.LogisticsFreight;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LogisticsFreightMapper {
    int deleteByKey(@Param("id") Long id, @Param("shopId") Long shopId);

    int deleteLogicByKey(@Param("id") Long id, @Param("shopId") Long shopId);

    int insert(LogisticsFreight record);

    LogisticsFreight findByKey(@Param("id") Long id, @Param("shopId") Long shopId);

    List<LogisticsFreight> listFreight(Long shopId);

    int updateByKey(LogisticsFreight record);

}